package com.miku.blog.controller;

import com.miku.blog.annotation.SystemLog;
import com.miku.blog.domain.pojo.ResponseResult;
import com.miku.blog.service.WebsiteInfoService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

/**
 * @author shkstart
 * @create ${}YEAR-06-14 6:52
 */
@Api(tags = "博客信息")
@RestController
public class WebSiteInfoController {

    @Autowired
    private WebsiteInfoService websiteInfoService;


    @SystemLog(notes = "获取[关于我]的内容")
    @ApiOperation(value = "获取[关于我]的内容接口")
    @GetMapping("/about")
    public ResponseResult getAbout(){
        return websiteInfoService.getAbout();
    }



    @SystemLog(notes = "获取系统公告")
    @ApiOperation(value = "获取系统公告接口")
    @GetMapping("/notice")
    public ResponseResult notice(){
        return  websiteInfoService.notice();
    }



}
